package com.qfjy.common.utils.redis;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

/**
 * @ClassName SysConfigRedisUtils
 * @Description TODO  sysconfig表  Redis
 * @Author guoweixin
 * @Date 2022/12/2
 * @Version 1.0
 */
@Component
public class SysConfigRedisUtils {

    @Autowired
    private RedisTemplate<String,Object> redisTemplate;


    /**
     *
     */
    public String getStringValueByKey(String field){

      Object obj= redisTemplate.opsForHash().get("sysconfig",field);

        return (String) obj;
    }
}
